package com.zcf.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.zcf.common.json.Body;
import com.zcf.mapper.ShoppingMapper;
import com.zcf.pojo.Shopping;
import com.zcf.utils.Hutool;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * <p>
 * 购物车表 前端控制器
 * </p>
 *
 * @author loupeng
 * @since 2018-12-20
 */
@Controller
@RequestMapping("/shopping")
@ResponseBody
@CrossOrigin
public class ShoppingController {
	@Autowired
	ShoppingMapper shoppingMapper;

	/**
	 * 查询购物车
	 */
	public Body queryShopping(String shoppingId) {
		Shopping shopping=new Shopping();
		shopping.setShoppingId(shoppingId);
		shopping=shopping.selectById();
		if(shopping==null) {
			return Body.newInstance("购物车不存在");
		}
		
		
		return null;
	}
}
